<div class="sinhviens view">
<h2><?php  __('Sinhvien');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sinhvien['Sinhvien']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sinhvien['Sinhvien']['user_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Lop'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($sinhvien['Lop']['id'], array('controller' => 'lops', 'action' => 'view', $sinhvien['Lop']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mssv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sinhvien['Sinhvien']['mssv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('TenSV'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sinhvien['Sinhvien']['tenSV']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('NgaySinhSV'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sinhvien['Sinhvien']['ngaySinhSV']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('GioiTinhSV'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sinhvien['Sinhvien']['gioiTinhSV']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Sinhvien', true), array('action' => 'edit', $sinhvien['Sinhvien']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Sinhvien', true), array('action' => 'delete', $sinhvien['Sinhvien']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sinhvien['Sinhvien']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Sinhviens', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sinhvien', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Lops', true), array('controller' => 'lops', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Lop', true), array('controller' => 'lops', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ketquas', true), array('controller' => 'ketquas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ketqua', true), array('controller' => 'ketquas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khmauks', true), array('controller' => 'khmauks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khmauk', true), array('controller' => 'khmauks', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Ketquas');?></h3>
	<?php if (!empty($sinhvien['Ketqua'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Sinhvien Id'); ?></th>
		<th><?php __('Lophp Id'); ?></th>
		<th><?php __('TichLuy'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($sinhvien['Ketqua'] as $ketqua):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ketqua['id'];?></td>
			<td><?php echo $ketqua['sinhvien_id'];?></td>
			<td><?php echo $ketqua['lophp_id'];?></td>
			<td><?php echo $ketqua['tichLuy'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ketquas', 'action' => 'view', $ketqua['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ketquas', 'action' => 'edit', $ketqua['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ketquas', 'action' => 'delete', $ketqua['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ketqua['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ketqua', true), array('controller' => 'ketquas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Khmauks');?></h3>
	<?php if (!empty($sinhvien['Khmauk'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Sinhvien Id'); ?></th>
		<th><?php __('Hknk Id'); ?></th>
		<th><?php __('Ctdt Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($sinhvien['Khmauk'] as $khmauk):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $khmauk['id'];?></td>
			<td><?php echo $khmauk['sinhvien_id'];?></td>
			<td><?php echo $khmauk['hknk_id'];?></td>
			<td><?php echo $khmauk['ctdt_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'khmauks', 'action' => 'view', $khmauk['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'khmauks', 'action' => 'edit', $khmauk['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'khmauks', 'action' => 'delete', $khmauk['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $khmauk['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Khmauk', true), array('controller' => 'khmauks', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
